Skip to content

Use jiff instead of chrono in the tests - #12

Merged
rafaga merged 2 commits into
masterfrom
dev
Nov 19, 2026
Merged

rafaga merged 2 commits into
masterfrom
dev

Conversation

@rafaga

@rafaga rafaga commented Nov 19, 2026

Copy link
Copy Markdown
Owner

What

Replace the chrono dev-dependency with jiff 1 (std only), and run the
CI and security workflows only for pull requests against master.

Changes

  • Cargo.toml: chrono = "0.4" -> jiff = { version = "1", default-features = false, features = ["std"] }
    (dev-dependency).
  • src/jwt_util.rs (tests), tests/errors.rs, tests/oauth.rs,
    tests/requests.rs: Timestamp::now().as_second() / as_millisecond()
    and SignedDuration::from_mins(5) in place of the chrono calls.
  • .github/workflows/ci.yml, security.yml: pull_request.branches is
    now [master] (it was [master, dev]).

Impact

None: the public API and the runtime dependencies do not change.
Only the tests and the CI triggers are affected.

chrono was only a dev-dependency, used by the tests to build timestamps
and durations. Replace it with jiff 1 (`Timestamp::now().as_second()`,
`as_millisecond()`, `SignedDuration::from_mins`). No change to the
public API.

CI and security workflows: pull requests are checked only against
master (the dev branch is no longer a target).
@rafaga rafaga changed the title Dev Use jiff instead of chrono in the tests Nov 19, 2026
@rafaga
rafaga merged commit a34a28e into master Nov 19, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant